import request from '../utils/request'

export function myTeam(data) {//我的团队
	return request(data, "/smallroutine/Reward/myTeam").then(res => res)
}
export function codePicture(data) {//二维码
	return request(data, "/smallroutine/Appregister/codePicture").then(res => res)
}
export function MyProfit(data) {//累积收益
	return request(data, "/smallroutine/Reward/my_profit").then(res => res)
}
export function PromoterUpgrade(data) {//购买礼包
	return request(data, "/smallroutine/Reward/promoter_upgrade").then(res => res)
}
export function PackageList(data) {//大礼包
	return request(data, "/smallroutine/reward/package_list").then(res => res)
}
export function DetailsPackage(data) {//礼包详情
	return request(data, "/smallroutine/reward/product_detail_gift").then(res => res)
}
export function giftSettlement(data) {//大礼包结算
	return request(data, "/smallroutine/reward/order_form_gift").then(res => res)
}
export function savePackages(data) {
	return request(data, "/smallroutine/program/save_select").then(res => res)
}
export function areaAgent(data) {//区域商
	return request(data, "/smallroutine/Reward/area_agent").then(res => res)
}
export function profitDetail(data) {//收益详情
	return request(data, "/smallroutine/Reward/profit_detail").then(res => res)
}
export function applicationMaterials(data) {//收益详情
	return request(data, "/smallroutine/Reward/upgrade_apply").then(res => res)
}
export function AgentAppy(data) {//申请区域商的提交申请
	return request(data, "/smallroutine/Reward/area_agent_apply").then(res => res)
}
export function teamPerson(data) {//队员信息
	return request(data, "/smallroutine/Reward/team_person").then(res => res)
}

export function createPackage (data) {
	return request(data, '/smallroutine/reward/save_packages').then(res => res) // 创建大礼包订单
}

export function UpgradeData (data) {
	return request(data, '/plat/Shareholder/upgradeData').then(res => res)
}

export function Partner(data) {//队员信息，合伙人，粉丝
	return request(data, "/smallroutine/Reward/myTeam_f").then(res => res)
}

export function sHugrade (data) { // 高级店铺升级
	return request(data, "/plat/Shareholder/shareholder_upgrade").then(res => res)
}

export function bHugrade (data) { // 普通店铺升级
	return request(data, "/weixinpl/mshop/shareholder_upgrade.php").then(res => res)
}

export function Prom (data) {
	return request(data, '/smallroutine/program/prom').then(res => res)
}

export function BePromoters (data) {
	return request(data, '/smallroutine/program/become_Promoters').then(res => res)
}

export function CashBack (data) {
	return request(data, '/smallroutine/Reward/cashback').then(res => res)
}

export function getCashBack (data) {
	return request(data, '/weixinpl/common_shop/jiushop/get_cashback.php').then(res => res)
}

export function getGroup (data) {
	return request(data, '/smallroutine/Reward/groupRecord').then(res => res)
}

export function getShop (data) {
	return request(data, '/plat/Shop/order_type').then(res => res)
}

export function StoreRewar (data) {
	return request(data, "/smallroutine/Reward/store_reward").then(res => res)
}